package com.killer.user.feign;


import com.killer.common.entity.Result;
import com.killer.user.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author killer
 * @since 2021-10-31
 */
@FeignClient("shop-user-service")
@RequestMapping("/user")
public interface UserFeign {

    @RequestMapping("/findByUsername")
    public Result<User> findByUsername(@RequestParam(value = "username") String username);
}
